import Vue from 'vue'
import App from './App.vue'
import router from './router'

Vue.config.productionTip = false

//导入element ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

// 设置前端跨域访问cookie
axios.defaults.withCredentials = true;
axios.defaults.crossDomain = true

//axios
import axios from 'axios'
Vue.prototype.$http = axios;

//
import VueCookie from 'vue-cookie'
Vue.use(VueCookie);

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
